package exam.common.util;

import java.util.HashMap;

public class InputDataParam {
	// 
	private static HashMap<String, Object> inputData;
	static {
		inputData = new HashMap<String, Object>();
	}
	
	public void putData(String key, Object value) {
		inputData.put(key, value);
	}
	
	public Object getValue(String key) {
		return inputData.get(key);
	}
	
	public HashMap<String, Object> getData() {
		return inputData;
	}
	
	@SuppressWarnings("unchecked")
	public <T> T getEntity(Class<T> c, String key) {
		return (T) inputData.get(key);
	}
}
